<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="${path}/bootstrap/css/bootstrap.min.css" />
<script src="${path}/bootstrap/js/jquery-3.4.1.min.js"></script>
<script src="${path}/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#insertModal").modal({
			backdrop : 'static'
		});
	})
</script>
</head>
<body>
	
<!-- 更新商品信息框 -->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog"
	aria-labelledby="exampleModalLabel">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title" id="exampleModalLabel">更新商品信息框</h4>
			</div>

			<div class="modal-body">
				<form class="form-horizontal" id="updateForm">
					<div class="form-group">
						<label for="toselectedid" class="col-sm-2 control-label">商品编号</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" id="toselectedid"
								name="toselectedid" value="${product.id}" readonly="readonly">
						</div>
					</div>
					<div class="form-group">
						<label for="toselectedname" class="col-sm-2 control-label">商品名称</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" id="toselectedname"
								name="toselectedname" value="${product.name}">
						</div>
					</div>
					<div class="form-group">
						<label for="toselectedprice" class="col-sm-2 control-label">商品价格</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" id="toselectedprice"
								name="toselectedprice" value="${product.price}">
						</div>
					</div>
					<div class="form-group">
						<label for="toselectedproduceTime" class="col-sm-2 control-label">生产日期</label>
						<div class="col-sm-10">
							<input type="text" class="form-control"
								id="toselectedproduceTime" name="toselectedproduceTime" value="${product.producetime}">
						</div>
					</div>
					<div class="form-group">
						<label for="toselectedmadeFactory" class="col-sm-2 control-label">生产厂家</label>
						<div class="col-sm-10">
							<input type="text" class="form-control"
								id="toselectedmadeFactory" name="toselectedmadeFactory" value="${product.madefactory}">
						</div>
					</div>
				</form>
				<div class="form-group">
						<div class="col-sm-10">
							<input type="hidden" class="form-control" id="toselectedPageNum"
								name="toselectedPageNum" value="" readonly="readonly">
						</div>
					</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				<button type="button" class="btn btn-primary" id="updateRecord">修改</button>
			</div>
		</div>
	</div>
</div>
	
</body>
</html>